package com.powerbosframework.jdbc.id;

import java.sql.SQLException;

public interface Identifier {
	/**
	 * 得到最大行数
	 * 
	 * @param sql
	 * @return
	 * @throws SQLException
	 */
	public int getROWNUM(String sql) throws SQLException;
	/**
	 * 得到全局标识符
	 * @param table
	 * @param primary
	 * @return
	 * @throws SQLException
	 */
	public Long getID(String table,String primary) throws SQLException;
	/**
	 * 得到全局标识符
	 * @param table
	 * @param primary
	 * @param prefix
	 * @param length
	 * @return
	 * @throws SQLException
	 */
	public Long getID(String table,String primary,long prefix,long length) throws SQLException;
}
